package ${artifactId}.service.${moduleName};

import com.ahccc.common.util.bootStrapTable.PageVO;
import com.ahccc.data.service.GenericManager;
import ${artifactId}.model.${moduleName}.${name};
import org.springframework.data.domain.Sort;
import java.util.Map;
/**
* @copyright:${copyright}
* @Author:${author}
* @Date:${datetime}
* @Description:
*/
public interface ${name}Manager extends GenericManager<${name}, <#list pks as f>${f.javaType} </#list>> {
    /**
    * 根据实体进行分页、排序查询
    * @param ${sname}
    * @param sort
    * @param pageNumber
    * @param pageSize
    * @return 返回封装好的列表数据，用bootstrap table展示
    */
    PageVO findAll(${name} ${sname}, Sort sort, Integer pageNumber, Integer pageSize);

    /**
    * 根据实体进行分页、排序查询
    * @param  ${sname}
    * @param sort
    * @param pageNumber
    * @param pageSize
    * @return回封装好的列表数据，用vue table展示
    */
    Map<String,Object> pagingByVue(${name} ${sname}, Sort sort, Integer pageNumber, Integer pageSize);
}

